/*
 * Created on 15.01.2004
 * Local Projects Database
 * Mihai Postelnicu (mihai@ro-gateway.org)
 * (c) 2003 by eRomania Gateway
 */
package ro.gateway.aida.usr.messaging;

import java.sql.Date;

import ro.gateway.aida.db.PersistentObject;



/**
 * @author Mihai Postelnicu<p>
 *
 *  e-mail (mihai@ro-gateway.org)<br>
 * (c) 2003 by eRomania Gateway<p>
 */

public class Message implements PersistentObject
{
      protected long id;
      protected String body;
      protected String subject;
      protected long user_id;
      protected boolean txt;
      protected Date modified;


      public Message( long id, long user_id )
      {
            this.id = id;
            body = null;
            subject = null;
            this.user_id = user_id;
            txt = false;
            modified = null;
      }

      /**
       * @return
       */
      public String getBody()
      {
            return body;
      }

      /**
       * @return
       */
      public long getId()
      {
            return id;
      }

      /**
       * @return
       */
      public String getSubject()
      {
            return subject;
      }

      /**
       * @param string
       */
      public void setBody( String string )
      {
            body = string;
      }

      /**
       * @param l
       */
      public void setId( long l )
      {
            id = l;
      }

      /**
       * @param string
       */
      public void setSubject( String string )
      {
            subject = string;
      }

      /**
       * @return
       */
      public long getUser_id()
      {
            return user_id;
      }

      /**
       * @param l
       */
      public void setUser_id( long l )
      {
            user_id = l;
      }

      /**
       * @return
       */
      public boolean isTxt()
      {
            return txt;
      }

      /**
       * @param b
       */
      public void setTxt( boolean b )
      {
            txt = b;
      }

      /**
       * @return
       */
      public Date getModified()
      {
            return modified;
      }

      /**
       * @param date
       */
      public void setModified( Date date )
      {
            modified = date;
      }

}
